package org.spring.sample.common;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.mybatis.spring.SqlSessionTemplate;
import org.spring.sample.common.mapper._4.SysUserMapper;
import org.spring.sample.mapper._4.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:applicationContext_4.xml"})
public class DaoTest_4 {
	
	@Autowired
	private SysUserMapper sysUserMapper;
	
	@Autowired
	private SqlSessionTemplate sqlSessionTemplate;
	@Test
	public void test() {
		System.out.println(sysUserMapper.selectUser().size());
		System.out.println(sqlSessionTemplate.selectList("org.spring.sample.mapper._4.SysUserMapper.selectUser", ""));
	}

}
